package com.leexuan.ordersystem.forms;

import javax.servlet.http.HttpServletRequest;

import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.action.ActionMessage;

public class DeliverForm extends ActionForm {

	private int did;

	private int oid;

	private int odid;

	private int pid;

	private int quantity;

	private int remain;

	private String date;

	public DeliverForm() {
		super();
	}

	public void reset(ActionMapping mapping, HttpServletRequest request) {

		this.did = 0;
		this.date = null;
		this.oid = 0;
		this.odid = 0;
		this.pid = 0;
		this.quantity = 0;
		this.remain = 0;
	}

	/** --------------getter----------------------- */

	public int getDid() {
		return this.did;
	}

	public int getOid() {
		return this.oid;
	}

	public int getOdid() {
		return this.odid;
	}

	public int getPid() {
		return this.pid;
	}

	public int getRemain() {
		return this.remain;
	}

	public int getQuantity() {
		return this.quantity;
	}

	public String getDate() {
		return this.date;
	}

	/** --------------setter----------------------------- */

	public void setDid(int did) {
		this.did = did;
	}

	public void setOid(int oid) {
		this.oid = oid;
	}

	public void setPid(int pid) {
		this.pid = pid;
	}

	public void setOdid(int odid) {
		this.odid = odid;
	}

	public void setRemain(int remain) {
		this.remain = remain;
	}

	public void setQuantity(int quantity) {
		this.quantity = quantity;
	}

	public void setDate(String date) {
		this.date = date;
	}

}
